<html><!-- InstanceBegin template="/Templates/_Admin_Template.dwt" codeOutsideHTMLIsLocked="false" -->
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<!-- InstanceBeginEditable name="doctitle" -->
<title>TCedit 测试用例编写工具 - 测试用例</title>
<!-- InstanceEndEditable -->
<link rel="shortcut icon" href="favicon.ico">
<script src="/js/common.js"></script>
<script type="text/javascript" src="../js/jquery/jquery.js"></script>
<link href="../js/toolbar/css/core.css" rel="stylesheet" type="text/css" />
<link href="../js/toolbar/css/Toolbar.css" rel="stylesheet" type="text/css" />
<script src="../js/toolbar/js/Toolbar.js" type="text/javascript"></script>
<style type="text/css">
	tr,td {
		line-height: 150%;
		cursor:default;
	}
</style>
<script type="text/javascript">
	var toolbar;
	$(document).ready(function() {
		toolbar = new Toolbar({
			renderTo : 'toolbar',
			//border: 'top',
			items : [ {
				type : 'button',
				title : '修改',
				bodyStyle : 'edit',
				useable : 'T',
				handler : function() {
					doAction("update");
				}
			}, {
				type : 'button',
				title : '删除',
				bodyStyle : 'delete',
				useable : 'T',
				handler : function() {
					doAction("delete");
				}
			}, '-' ],
			active : 'ALL'//激活哪个
		});

		toolbar.render();
		//toolbar.genAZ();
	});
</script>
<script>
function doAction(action){
	if (action == "update") {
		window.open("/testCaseMgt/testCaseForm.jspx?action=query&id=${testCase.id}", "", "width=" + window.screen.width*0.80 + ",height=" + window.screen.height*0.88 + ",left="+ window.screen.width*0.10 + ",top=" + window.screen.height*0.03 + ",toolbar=no,menubar=no,scrollbars=yes,resizable=yes,location=no,status=no");
	} else if (action == "delete") {
		if(confirm("是否确定要删除？")) {
			window.location.href="/testCaseMgt/testCaseForm.jspx?action=delete&id=${testCase.id}";
			opener.parent.leftFrame.deleteTreeNode(getParam("id"));
		}
	}
}
</script>
<!-- InstanceBeginEditable name="head" --><!-- InstanceEndEditable -->
</head>

<body>
  <div id="toolbar"></div>
  <table width="99%" align="center" border="1" cellspacing="0" cellpadding="0" bordercolor="#CCCCCC" bordercolordark="#FFFFFF" bordercolorlight="#999999" class="p9">
    <tr>
      <td bgcolor="#dadada">ID：</td>
      <td>$!{testCase.id}</td>
    </tr>
    <tr>
      <td width="15%" bgcolor="#dadada">测试用例描述</td>
      <td width="85%">$!{testCase.describing}</td>
    </tr>
    <tr>
      <td bgcolor="#dadada">前提和约束：</td>
      <td>$!{testCase.premiss}&nbsp;</td>
    </tr>
    <tr>
      <td bgcolor="#dadada">备注：</td>
      <td>$!{testCase.remark}&nbsp;</td>
    </tr>
    <tr>
      <td bgcolor="#dadada">状态：</td>
      <td>$!{testCase.caseState.name}&nbsp;</td>
    </tr>
    <tr>
      <td bgcolor="#dadada">修订者：</td>
      <td>$!{testCase.user.realName}</td>
    </tr>
    <tr>
      <td bgcolor="#dadada">修订日期：</td>
      <td>$!{testCase.editDate}</td>
    </tr>
    <tr>
      <td colspan="2">
        <b>操作步骤:</b>
        $!{testCase.stepsStr}
      </td>
    </tr>
    <tr>
      <td colspan="2">
        <b>预期结果:</b>
        $!{testCase.exResultStr}
      </td>
    </tr>
  </table>
</body>
<!-- InstanceEnd -->
</html>